#ifndef CALTIMER_H
#define CALTIMER_H

#include <QWidget>
#include "util/util.h"
#include "softkey/softkeys.h"
namespace Ui {
class CalTimer;
}

class CalTimer : public QWidget
{
    Q_OBJECT

public:
    explicit CalTimer(QWidget *parent = 0);
    ~CalTimer();
    void re_setupUiAppearance();
signals:
    void returnMenu();
private slots:
    void pushReturnMenu();
protected:
    QString* labelEditedName;
    void setupUiAppearance();
    void showWidget2();
    void hideWidget2();
    void updateLabel();
    void connectButtonsAndSignals();
    void bindTextlineWithSoftkeyBoard();
    void setButtonClickedStyle(QPushButton* button);
    bool eventFilter(QObject *watched, QEvent *event);

private:
    Ui::CalTimer *ui;
    QLabel* labelEdited;
};

#endif // CALTIMER_H
